import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JTabbedPane;
import javax.swing.SwingUtilities;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class TravelExperts extends javax.swing.JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JMenuBar jMenuBar1;
	private JLabel jLabel5;
	private JMenuItem jMenuItem1;
	private JMenu jMenu1;
	private JTabbedPane jTabbedPane1;
	
	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				TravelExperts inst = new TravelExperts();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public TravelExperts() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try 
		{
			getContentPane().setLayout(null);
			this.setTitle("Travel Experts Management System");
			{
				jMenuBar1 = new JMenuBar();
				setJMenuBar(jMenuBar1);
				{
					jMenu1 = new JMenu();
					jMenuBar1.add(jMenu1);
					jMenu1.setText("File");
					{
						jMenuItem1 = new JMenuItem();
						jMenu1.add(jMenuItem1);
						jMenuItem1.setText("Exit");
						jMenuItem1.addActionListener(new ActionListener() {
							
							@Override
							public void actionPerformed(ActionEvent e) 
							{
								// TODO Auto-generated method stub
								System.exit(0);
							}
						});
					}
				}
			}
			{
				jTabbedPane1 = new JTabbedPane();
				getContentPane().add(jTabbedPane1);
				jTabbedPane1.setBounds(0, 35, 1011, 688);
				{
					HomePanel home1 = new HomePanel();
					ImageIcon home = new ImageIcon(this.getClass().getResource("/images/home.jpg"));
					jTabbedPane1.addTab("Home", home , home1, "Go to Travel Experts Home Page");
															
					PackagePanel pack = new PackagePanel();
					ImageIcon packages = new ImageIcon(this.getClass().getResource("/images/packages.jpg"));
					jTabbedPane1.addTab("Packages", packages , pack, "Go to Package Management");
					
					AgentPanel agt = new AgentPanel();
					ImageIcon agents = new ImageIcon(this.getClass().getResource("/images/agents.gif"));
					jTabbedPane1.addTab("Agents", agents , agt, "Go to Agent Management");
									
					ProdPanel prod = new ProdPanel();
					ImageIcon products = new ImageIcon(this.getClass().getResource("/images/products.jpg"));
					jTabbedPane1.addTab("Products", products , prod, "Go to Product Management");
					
					SupplierPanel supp = new SupplierPanel();
					ImageIcon supplier = new ImageIcon(this.getClass().getResource("/images/supplier.gif"));
					jTabbedPane1.addTab("Suppliers", supplier , supp, "Go to Supplier Management");
					
					
					
					prod.setPreferredSize(new java.awt.Dimension(965, 594));
				}
			}
			{
				jLabel5 = new JLabel();
				getContentPane().add(jLabel5);
				jLabel5.setText("Travel Experts Management System");
				jLabel5.setBounds(575, 4, 430, 36);
				jLabel5.setFont(new java.awt.Font("Segoe UI",1,24));
				jLabel5.setForeground(new java.awt.Color(0,128,0));
			}
			this.setSize(1027, 737);

		}
		catch (Exception e) 
		{
			// TODO: handle exception
		}
	}
}
